package com.weng.platform.guest.entity;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.weng.framework.dao.mybatis.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;


/**
 * 访客记录实体Bean
 *
 * @author weng
 * @date 2021-03-12 14:45:31
 *
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("guest_visit_log")
public class GuestVisitLog extends BaseEntity<GuestVisitLog> {

    private static final long serialVersionUID = 1L;
	
	
	/**
	 * Id
	 */
	 @TableField(value="id")
	private String id;
	
	
	/**
	 * 访客Id
	 */
	 @TableField(value="visitor_id")
	private String visitorId;
	
	
	/**
     * 访客名称
     */
	 @TableField(value="visitor_name")
	private String visitorName;
	
	
	/**
	 * 操作详情
	 */
	 @TableField(value="description")
	private String description;
	
	
	/**
	 * 操作IP
	 */
	 @TableField(value="request_ip")
	private String requestIp;
	
	
	/**
	 * 操作类型
	 */
	 @TableField(value="type")
	private String type;

	/**
     * 资源Id
     */
	 @TableField(value="resource_id")
	private String resourceId;

	/**
	 * 创建时间
	 */
	@TableField(value="create_time",fill = FieldFill.INSERT)
	private Date createTime;

	/**
	 * 更新时间
	 */
	@TableField(value="update_time",fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;
}
